ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / ListBox<T> Class / ItemRole Property






In This Topic
    ItemRole Property (ListBox<T>)
    In This Topic
    Gets or sets the value of the "role" attribute added to the list items.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute("option")>
    Public Property ItemRole As System.String
    'Usage
     
    
    Dim instance As ListBox(Of T)
    Dim value As System.String
     
    instance.ItemRole = value
     
    value = instance.ItemRole
    [System.ComponentModel.DefaultValue("option")]
    public System.string ItemRole {get; set;}
    public read-write property ItemRole: System.String; 
    System.ComponentModel.DefaultValueAttribute("option")
    public function get,set ItemRole : System.String
    [System.ComponentModel.DefaultValue("option")]
    public: __property System.string* get_ItemRole();
    public: __property void set_ItemRole( 
       System.string* value
    );
    [System.ComponentModel.DefaultValue("option")]
    public:
    property System.String^ ItemRole {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    The default value for this property is "option".
    See Also